package com.ecar.core.manager.dao;

import org.apache.ibatis.annotations.Param;

import com.ecar.common.dao.mybatis.MybatisMapper;
import com.ecar.core.common.entity.User;
import com.ecar.core.manager.entity.Staff;

public interface StaffMapper extends MybatisMapper  {
    int deleteByPrimaryKey(Integer id);

    int insert(Staff record);

    int insertSelective(Staff record);

    Staff selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);
    
    Staff queryByUsername(@Param("name") String name);

	Staff findByPhone(String phone);
}